package com.ctg.itrdc.sysmgr.portal.data;

import java.util.List;

import com.ctg.itrdc.pasp.core.IBaseDao;
import com.ctg.itrdc.pasp.core.PageInfo;
import com.ctg.itrdc.sysmgr.portal.data.entity.SystemRoles;
import com.ctg.itrdc.sysmgr.portal.data.vo.SystemRolesVO;

public interface ISystemRolesDao extends IBaseDao<SystemRoles, Long>  {
//	public PageInfo<SystemRoles> jdbcFindPageInfo(SystemRoles entity, int currentPage, int perPageNum);
	/**
	 * 获取系统角色。
	 * @param sysUserId 系统用户id
	 * @return
	 */
	public List<SystemRoles> selectBySysUserId(Long sysUserId);
	/**
	 * 获取系统角色。
	 * @param sysPostId 系统岗位id
	 * @return
	 */
	public List<SystemRoles> selectBySysPostId(Long sysPostId);
	public PageInfo<SystemRolesVO> queryPageInfo4Post(SystemRoles entity,Long sysPostId,
			Integer currentPage, Integer perPageNum);
	public PageInfo<SystemRolesVO> queryPageInfo4User(SystemRoles entity,Long sysUserId,
			Integer currentPage, Integer perPageNum);
	public Long[] selectRoleIdsBySysUserId(Long sysUserId);
	public Long[] selectRoleIdsBySysPostId(Long sysPostId);
}
